'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function n(t) {
  if (!t) return null;
  switch (t.type) {
    case 'alias':
    case 'scalar':
    case 'double-quoted-scalar':
    case 'single-quoted-scalar':
      if (
        t.source.includes(`
`)
      )
        return !0;
      if (t.end) {
        for (const e of t.end) if (e.type === 'newline') return !0;
      }
      return !1;
    case 'flow-collection':
      for (const e of t.items) {
        for (const r of e.start) if (r.type === 'newline') return !0;
        if (e.sep) {
          for (const r of e.sep) if (r.type === 'newline') return !0;
        }
        if (n(e.key) || n(e.value)) return !0;
      }
      return !1;
    default:
      return !0;
  }
}
exports.containsNewline = n;
